->>

org.http4s.dsl.impl.->>
object ->>

Attributes

Source
Path.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
->>.type

Members list

Value members

Concrete methods

def unapply[F[_] : Applicative](req: Request[F]): Some[((PartialFunction[Method, F[Response[F]]]) => F[Response[F]], Path)]

Extractor to match an http resource and then enumerate all supported methods:

Extractor to match an http resource and then enumerate all supported methods:

(request.method, Path(request.path)) match {
  case withMethod ->> Root / "test.json" => withMethod {
    case Method.GET => ...
    case Method.POST => ...

Returns an error response if the method is not matched, in accordance with RFC7231

Attributes

Source
Path.scala